//===================================================================
// 西交投.NET产品框架 版权所有
//===================================================================
using System.ComponentModel.DataAnnotations;
using XCI.Core;

namespace XCI.Sys.Filter
{
    /// <summary>
    /// 系统用户过滤条件
    /// </summary>
    public class SysUserFilter : BasePageFilter
    {
        /// <summary>
        /// 默认过滤对象
        /// </summary>
        public static SysUserFilter Default { get; } = new SysUserFilter { };

        /// <summary>
        /// 账号/姓名/简拼模糊查询关键字
        /// </summary>
        [Display(Name = "关键字")]
        public string Key { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [Display(Name = "手机号码")]
        public string Mobile { get; set; }

        /// <summary>
        /// 电子邮件
        /// </summary>
        [Display(Name = "电子邮件")]
        public string Email { get; set; }

        /// <summary>
        /// 机构主键
        /// </summary>
        [Display(Name = "机构主键")]
        public string DeptId { get; set; }

        /// <summary>
        /// 查询机构所有下级 [true-启用, false-禁用]
        /// </summary>
        [Display(Name = "查询机构所有下级")]
        public bool? DeptAllLower { get; set; }

        /// <summary>
        /// 状态 [true-启用, false-禁用]
        /// </summary>
        [Display(Name = "状态")]
        public bool? Status { get; set; }

        /// <summary>
        /// 账号类型 [1-企业账号, 0-系统账号]
        /// </summary>
        [Display(Name = "账号类型")]
        public string Category { get; set; }

        /// <summary>
        /// 企业主键
        /// </summary>
        [Display(Name = "企业主键")]
        public string EntId { get; set; }

        /// <summary>
        /// 企业名称
        /// </summary>
        [Display(Name = "企业名称")]
        public string EntName { get; set; }

        /// <summary>
        /// 是否启用机构数据权限过滤 [true-启用, false-禁用]
        /// </summary>
        [Display(Name = "是否启用机构数据权限过滤")]
        public bool? EnableDeptScope { get; set; }
    }
}
